package com.jmb.api.web.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jmb.api.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jmb.api.vo.permission.PermissionQueryVO;
import com.jmb.api.vo.permission.PermissionVO;

import java.util.List;

/**
* @author 金梦博
* @description 针对表【t_permission】的数据库操作Service
* @createDate 2025-09-25 17:20:28
*/
public interface PermissionService extends IService<Permission> {

    void saveOrUpdatePermission(Permission permission);

    void deletePermission(Long id);

    IPage<PermissionVO> listPermission(IPage<PermissionVO> page, PermissionQueryVO permissionQueryVO);

    List<PermissionVO> listPermissionTree();
}
